package com.smart.model.dtomapper;

import com.smart.model.domain.DictDO;
import com.smart.model.request.DictRequest;
import com.smart.model.vo.DictVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface DictDtoMapper {

    DictDtoMapper INSTANCE = Mappers.getMapper(DictDtoMapper.class);

    /**
     *
     * @param dictDO
     * @return
     */
    DictVO do2VO(DictDO dictDO);

    /**
     * 
     * @param dictDO
     * @return
     */
    DictDO request2DO(DictRequest dictDO);
}
